// 电影模块的路由

import FilmsIndex from "@/views/Films/Index";
import NowPlaying from "@/views/Films/NowPlaying";
import ComingSoon from "@/views/Films/ComingSoon";
import Detail from "@/views/Films/Detail";

const router = [
    // 电影模块
    {
        path: "/films",
        component: FilmsIndex,
        children: [
            { path: "nowPlaying", component: NowPlaying },
            { path: "comingSoon", component: ComingSoon },
        ],
    },
    // 电影详情
    {
        path: "/film/:filmID",
        component: Detail
    }
    // ....
];

export default router;
